/*
 * @Author: 颜礼田 2564217790@qq.com
 * @Date: 2024-09-07 16:50:03
 * @LastEditors: MrDotYan 2564217790@qq.com
 * @LastEditTime: 2024-09-10 22:53:43
 * @FilePath: /webServer/src/schema/role/index.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { BaseColumns } from '../base';
import { MenusSchema } from '../menus';
import { PermissionSchema } from '../permission';
import { UserSchema } from '../user';
export interface RoleSchema extends BaseColumns {
  // 角色名称
  roleName: string;

  // 角色编码
  roleCode: string;

  // 角色包含的菜单
  menus: MenusSchema[];

  // 角色包含的菜单
  permission: PermissionSchema[];

  user?: UserSchema[];
}
